import storage from '@/util/storage'

const state = {
    tableData: JSON.parse(storage.local.get('trackTableData')) || {}
}

const getters = {}

const actions = {}

const mutations = {
    setTrackTableData(state, data) {
        storage.local.set('trackTableData', JSON.stringify(data))
        state.tableData = data
    }
}

export default {
    namespaced: true,
    state,
    actions,
    getters,
    mutations
}
